package com.lau.proxy;

/**
 * Created by liutf on 2016/7/19.
 */
public class UserStaticProxy implements UserService {

    UserServiceImpl userServiceImpl;

    public UserStaticProxy(UserServiceImpl userServiceImpl) {
        this.userServiceImpl = userServiceImpl;
    }

    @Override
    public void queryUser() {
        System.out.println("before..");
        userServiceImpl.queryUser();
        System.out.println("after..");
    }

    @Override
    public void saveUser() {
        System.out.println("before..");
        userServiceImpl.saveUser();
        System.out.println("after..");
    }
}
